/**
 * 2013-6-24 下午10:22:25 Created By niexiaoqiang
 */

package com.xiaoqiang.MtwV2ForMoblie.update;

import android.os.Bundle;
import android.os.Message;

/**
 * 下载进度消息
 */
public class DownloadMessage {
	private int filetotalsize;
	private int currentdonwloadsize;
	private String filename;

	public DownloadMessage(String filename, int filetotalsize, int currentdonwloadsize) {
		this.filetotalsize = filetotalsize;
		this.filename = filename;
		this.currentdonwloadsize = currentdonwloadsize;
	}

	public Message getMessage() {
		Message message = new Message();
		Bundle data = new Bundle();
		data.putInt("filetotalsize", filetotalsize);
		data.putString("filename", filename);
		data.putInt("currentdonwloadsize", currentdonwloadsize);
		message.setData(data);
		return message;
	}
}
